package com.sfx.messagequeue.common.consumer;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description: 表示一个消费者,用于处理消息
 * User: sfx
 * Date: 2023-08-08
 * Time: 20:27
 */
@Data
@AllArgsConstructor
public class ConsumerEnv {
    //消费者标识
    private String consumerTag;
    //队列唯一标识
    private String queueName;
    //消息应答方式
    private boolean autoAck;
    //用于处理消息
    private Consumer consumer;
}